package com.tao.mytestgreendao.gen;

import java.util.Map;

import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.AbstractDaoSession;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.identityscope.IdentityScopeType;
import org.greenrobot.greendao.internal.DaoConfig;

import com.tao.mytestgreendao.FundsinfoBean;
import com.tao.mytestgreendao.TeacherEntity;
import com.tao.mytestgreendao.UserEntity;

import com.tao.mytestgreendao.gen.FundsinfoBeanDao;
import com.tao.mytestgreendao.gen.TeacherEntityDao;
import com.tao.mytestgreendao.gen.UserEntityDao;

// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.

/**
 * {@inheritDoc}
 * 
 * @see org.greenrobot.greendao.AbstractDaoSession
 */
public class DaoSession extends AbstractDaoSession {

    private final DaoConfig fundsinfoBeanDaoConfig;
    private final DaoConfig teacherEntityDaoConfig;
    private final DaoConfig userEntityDaoConfig;

    private final FundsinfoBeanDao fundsinfoBeanDao;
    private final TeacherEntityDao teacherEntityDao;
    private final UserEntityDao userEntityDao;

    public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
            daoConfigMap) {
        super(db);

        fundsinfoBeanDaoConfig = daoConfigMap.get(FundsinfoBeanDao.class).clone();
        fundsinfoBeanDaoConfig.initIdentityScope(type);

        teacherEntityDaoConfig = daoConfigMap.get(TeacherEntityDao.class).clone();
        teacherEntityDaoConfig.initIdentityScope(type);

        userEntityDaoConfig = daoConfigMap.get(UserEntityDao.class).clone();
        userEntityDaoConfig.initIdentityScope(type);

        fundsinfoBeanDao = new FundsinfoBeanDao(fundsinfoBeanDaoConfig, this);
        teacherEntityDao = new TeacherEntityDao(teacherEntityDaoConfig, this);
        userEntityDao = new UserEntityDao(userEntityDaoConfig, this);

        registerDao(FundsinfoBean.class, fundsinfoBeanDao);
        registerDao(TeacherEntity.class, teacherEntityDao);
        registerDao(UserEntity.class, userEntityDao);
    }
    
    public void clear() {
        fundsinfoBeanDaoConfig.clearIdentityScope();
        teacherEntityDaoConfig.clearIdentityScope();
        userEntityDaoConfig.clearIdentityScope();
    }

    public FundsinfoBeanDao getFundsinfoBeanDao() {
        return fundsinfoBeanDao;
    }

    public TeacherEntityDao getTeacherEntityDao() {
        return teacherEntityDao;
    }

    public UserEntityDao getUserEntityDao() {
        return userEntityDao;
    }

}
